package work.chenbo.spring_boot_shiro.modules.sys_user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import work.chenbo.spring_boot_shiro.base.BaseService;
import work.chenbo.spring_boot_shiro.common.vo.ResponseObject;
import work.chenbo.spring_boot_shiro.modules.sys_user.entity.SysUser;
import work.chenbo.spring_boot_shiro.modules.sys_user.vo.UserQO;

import java.io.Serializable;

/**
 * 用户接口
 * @interfaceName SysUserService
 * @authtor ChenBo
 * @date 2019/10/27
 */
public interface SysUserService extends BaseService<SysUser,Long> {

    /**
    * 根据用户名获取用户
    * @author; ChenBo
    * @datetime: 2019/10/27
    */
    SysUser findByUserName(String userName);

    /**
     * 分页查询
     * @author ChenBo
     * @date 2019/10/30
     */
    IPage<SysUser> queryList(UserQO qo);

    /**
     * 页面表单验证用户名是否重复
     * @author ChenBo
     * @date 2019/11/8
     */
    Boolean checkUserName(Long id,String userName);

    /**
     * 添加用户
     * @author ChenBo
     * @date 2019/11/8
     */
    int add(SysUser user);

    /**
     * 获取用户详细信息
     * @author ChenBo
     * @date 2019/11/12
     */
    SysUser queryOne(SysUser user);
}
